import apiFn from './apiFn';
import type APIType from './apiType';
export default {
  get baseUrl() {
    return new apiFn().baseUrl;
  },
  get_home_hot_game: (params?: any): Promise<APIType.findAllPromise> =>
    new apiFn().POST(`/api/Home/get_home_hot_game`, params),
  get_game_all_new: (params?: any): Promise<APIType.findAllPromise> =>
    new apiFn().POST(`/api/home/get_selection_game_all`, params),
  transform_goods_all2: (params?: any): Promise<APIType.findAllPromise> =>
    new apiFn().POSTBody(`/api/Home/get_selection_goods_all`, params),
  get_type_info: (params?: any): Promise<APIType.findAllPromise> =>
    new apiFn().POST(`/api/home/get_type_info`, params),
  //获取商品列表
  get_goods_detail: (params: any): Promise<APIType.findAllPromise> =>
    new apiFn().POST('/api/home/get_selection_goods_detail', params),
};
